package com.lap.auth.application.dict;

import com.lap.auth.application.dict.dto.DictTypeDto;
import com.lap.auth.application.dict.dto.QueryDictTypePageQuery;
import com.lap.auth.application.dict.repository.DictTypeQueryRepository;
import com.lap.framework.dto.page.PageResponse;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

@RequiredArgsConstructor
@Service
public class DictTypeQueryService {

  private final DictTypeQueryRepository dictTypeQueryRepository;

  public PageResponse<DictTypeDto> queryDictTypePage(QueryDictTypePageQuery query) {
    return dictTypeQueryRepository.findByConditionPaged(query);
  }
}
